﻿<%@ Page Title="crm_advertisment view" Language="C#" MasterPageFile="~/Site.Master"
    AutoEventWireup="true" CodeBehind="crm_advertisment_view.aspx.cs" Inherits="Sami_SMS_CRM_UI.crm_advertisment_view" %>
<%@ Register src="UserControl/ucPaging.ascx" tagname="ucPaging" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CssContent" runat="server">
    <style type="text/css">
        .boxtable{}
        .boxtable tr td{padding-left: 5px; border: 1px solid #C3C3C3; height:30px;}
        tr.pagging td {height:20px; padding:0; margin:0; color:#949494;}
        tr.pagging td td{ border:solid 1px #48719D; height:20px; background:#48719D; width:20px; text-align:center;}
        tr.pagging:hover td{background: none;}
        tr.pagging a{ background:#C3C3C3; height:20px; line-height:20px; padding:0 8px; text-decoration: none; color:#949494;display:inline-block;}
        tr.pagging a:hover { border-color:#48719D; background:#48719D; color:#fff; }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ScriptContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            registerScript();
        });
        function registerScript() {
            DatePicker("txtDateFrom,txtDateTo");
        }   
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="box">
        <div class="box-title">
            advertisment detail
            <div class="fr">
                <a href="crm_advertisment.aspx" style="color:White">Back</a>
            </div>
        </div>
        <div class="clear"></div>
        <div class="box-content fl" style="width: 48%; height:540px; border: 1px solid #C3C3C3;">
            <table style="border-collapse:collapse" class="boxtable" width="100%">
                <tr>
                    <td style="width:120px">Message</td>
                    <td><asp:Literal ID="ltrMessage" runat="server" /></td>
                </tr>
                <tr>
                    <td>Max adv</td>
                    <td><asp:Literal ID="ltrMaxAdv" runat="server" /></td>
                </tr>
                <tr>
                    <td>Sent Adv</td>
                    <td><asp:Literal ID="ltrSentAdv" runat="server" /></td>
                </tr>
                <tr>
                    <td>Sender Name</td>
                    <td><asp:Literal ID="ltrSenderName" runat="server" /></td>
                </tr>
                <tr>
                    <td>Start expected</td>
                    <td><asp:Literal ID="ltrStartExpected" runat="server" /></td>
                </tr>
                <tr>
                    <td>End expected</td>
                    <td><asp:Literal ID="ltrEndExpected" runat="server" /></td>
                </tr>
                <tr>
                    <td>Allow sent from</td>
                    <td><asp:Literal ID="ltrAllowSentFrom" runat="server" /></td>
                </tr>
                <tr>
                    <td>Allow sent to</td>
                    <td><asp:Literal ID="ltrAllowSentTo" runat="server" /></td>
                </tr>
                <tr>
                    <td>Action</td>
                    <td><asp:Literal ID="ltrAction" runat="server" /></td>
                </tr>
                <tr>
                    <td>Status</td>
                    <td><asp:Literal ID="ltrStatus" runat="server" /></td>
                </tr>
            </table>
        </div>
        <div class="box-content fl" style="width: 48%; height:540px; border: 1px solid #C3C3C3;">
        <asp:UpdatePanel ID="udpn" runat="server">
            <ContentTemplate>
            <div>
                <span>Show</span>
                <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged"
                    style="margin-top: -9px;">
                        <asp:ListItem Value="5">5</asp:ListItem>
                        <asp:ListItem Value="10">10</asp:ListItem>
                        <asp:ListItem Value="20">20</asp:ListItem>
                        <asp:ListItem Value="50" Selected="True">50</asp:ListItem>
                        <asp:ListItem Value="100">100</asp:ListItem>
                        <asp:ListItem Value="150">150</asp:ListItem>
                        <asp:ListItem Value="200">200</asp:ListItem>
                    </asp:DropDownList>  
                <span>From</span>
                <asp:TextBox ID="txtDateFrom" runat="server" style="width:120px" />
                <span>To</span>
                <asp:TextBox ID="txtDateTo" runat="server"  style="width:120px"/>
                <asp:Button ID="btnStatistic" Text="Statistic" runat="server" CssClass="ui-button"
                    Style="height: 26px; margin-top: -9px" onclick="btnStatistic_Click" />
            </div>
            <div>
                <asp:GridView ID="grvStatistic" runat="server" AutoGenerateColumns="false" 
                    Width="100%" CssClass="table" ShowFooter="true" ShowHeaderWhenEmpty="true">
                    <FooterStyle HorizontalAlign="Center" />
                    <Columns>
                        <asp:BoundField HeaderText="No" DataField="RowNumber" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="40" />
                        <asp:BoundField HeaderText="DateTime" DataField="date_time" DataFormatString="{0:MM/dd/yyyy}" />
                        <asp:BoundField HeaderText="Sent advertisment" DataField="advsent" ItemStyle-HorizontalAlign="Center"/>
                    </Columns>
                </asp:GridView>
                <uc1:ucPaging ID="pagingbottom" runat="server" />
            </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="udprogress" DisplayAfter="1" runat="server">
        <ProgressTemplate>
            <div class="ui-widget-overlay ui-front">
                <img src="images/loading.gif" alt="Loading..." style="position: fixed; top: 50%;
                    left: 50%" />
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
        </div>
    </div>
    <input type="hidden" id="formId" value="crm_advertisment" />
</asp:Content>
